package com.ybzl.system.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.ybzl.system.domain.IotData;
import com.ybzl.system.mapper.IotDataMapper;
import com.ybzl.system.service.IotDataService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.Date;


/*
 * Desc：  服务类实现
 * @Author xin
 * @Company yb.com
 * @Since  2023-08-21
 *
 */

@Slf4j
@Service
@Transactional
public class IotDataServiceImpl extends ServiceImpl<IotDataMapper, IotData> implements IotDataService {

    @Autowired
    private IotDataMapper iotDataMapper;

    @Override
    public Date maxaddTime(String deviceId, String indexName) {
        return iotDataMapper.maxaddTime(deviceId,indexName);
    }
}
